package com.solace.disruptor.solace;

public class ds implements Runnable {
    public static void main(String[] args) {
        ds ds = new ds();
        Thread testThread =new Thread(ds);
        testThread.start();
        System.out.println("主线程结束");
        testThread.interrupt();
        Thread.currentThread().stop();

    }
    @Override
    public void run() {
        while (true) {
            try {
                Thread.sleep(111);
                System.out.println(111);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
